const app = getApp()
Page({
	data: {
		userInfo: {},
		myinfo: {}
	},
	onLoad: function (options) {

	},
	onShow: function () {
		if (!app.globalData.myinfo) {
			console.log('还没有从第三方获取到资料');
			// wx.switchTab({ url: '../../index/index' })
		} else {
			this.setData({
				userInfo: app.globalData.userInfo,
				myinfo: app.globalData.myinfo
			})
		}
	},
	onPullDownRefresh:function(){
		console.log('下拉了');
		this.setData({
			userInfo: app.globalData.userInfo,
			myinfo: app.globalData.myinfo
		})
	}
})